package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.MeetingInfoMapper;
import com.ruoyi.system.domain.MeetingInfo;
import com.ruoyi.system.service.IMeetingInfoService;

/**
 * 会议室Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-13
 */
@Service
public class MeetingInfoServiceImpl implements IMeetingInfoService 
{
    @Autowired
    private MeetingInfoMapper meetingInfoMapper;

    /**
     * 查询会议室
     * 
     * @param meetingId 会议室主键
     * @return 会议室
     */
    @Override
    public MeetingInfo selectMeetingInfoByMeetingId(Long meetingId)
    {
        return meetingInfoMapper.selectMeetingInfoByMeetingId(meetingId);
    }

    /**
     * 查询会议室列表
     * 
     * @param meetingInfo 会议室
     * @return 会议室
     */
    @Override
    public List<MeetingInfo> selectMeetingInfoList(MeetingInfo meetingInfo)
    {
        return meetingInfoMapper.selectMeetingInfoList(meetingInfo);
    }

    /**
     * 新增会议室
     * 
     * @param meetingInfo 会议室
     * @return 结果
     */
    @Override
    public int insertMeetingInfo(MeetingInfo meetingInfo)
    {
        return meetingInfoMapper.insertMeetingInfo(meetingInfo);
    }

    /**
     * 修改会议室
     * 
     * @param meetingInfo 会议室
     * @return 结果
     */
    @Override
    public int updateMeetingInfo(MeetingInfo meetingInfo)
    {
        return meetingInfoMapper.updateMeetingInfo(meetingInfo);
    }

    /**
     * 批量删除会议室
     * 
     * @param meetingIds 需要删除的会议室主键
     * @return 结果
     */
    @Override
    public int deleteMeetingInfoByMeetingIds(Long[] meetingIds)
    {
        return meetingInfoMapper.deleteMeetingInfoByMeetingIds(meetingIds);
    }

    /**
     * 删除会议室信息
     * 
     * @param meetingId 会议室主键
     * @return 结果
     */
    @Override
    public int deleteMeetingInfoByMeetingId(Long meetingId)
    {
        return meetingInfoMapper.deleteMeetingInfoByMeetingId(meetingId);
    }
}
